<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>自己的电商系统</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
</head>
<body>
	<div class="container">
		<div class="row" id="header">
			<div class="col-md-3">
				<a href="__ROOT__"><img id="logo" src="__PUBLIC__/img/logo.png" /></a>
			</div>
		</div>
		<br />
	</div>
	<div id="regedit_wrapper">
	<div class="container">
		<div id="regedit">
			<div class="panel panel-default">
				<div class="panel-body co-blbl">
					<b>用户注册</b>
				</div>
				<div class="panel-body">
					<form action="<?=U('/Home/user/do_regedit')?>" method="POST">
						<div class="form-group">
							<label>账户名</label>
							<input type="text" class="form-control" name="username" placeholder="请输入账户名...">
						</div>
						<div class="form-group">
							<label>密码</label>
							<input type="password" class="form-control" name="password" placeholder="请输入密码...">
						</div>
						<div class="form-group">
							<label>再次输入密码</label>
							<input type="password" class="form-control" name="repassword" placeholder="请再次输入密码...">
						</div>

						<div class="form-group">
							<label>验证码</label>
							<div class="row">
								<div class="col-md-6">
									<input type="text" class="form-control" name="verify" placeholder="请输入验证码...">
								</div>
								<div class="col-md-6">
									<img id="checkpic" onclick="changing();" src="<?=U('/Home/user/verify');?>"/>
								</div>
							</div>
						</div>
						<div class="form-group">
							<button type="submit" class="btn btn-block btn-success">注册</button>	
						</div>

					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-3.1.0.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		function changing(){
			document.getElementById('checkpic').src="<?=U('/Home/user/verify');?>?"+Math.random();
		} 
	</script>
</body>
</html>